// import React, { useState, useEffect } from 'react';
import React, { Component } from 'react'
import { Funnel } from '@ant-design/plots'

export default class StatisticsCharts extends Component<any, any> {
  render() {
    const data = [
      {
        stage: '线索总数',
        number: 1000,
      },
      {
        stage: '有效线索数',
        number: 800,
      },
      {
        stage: '商机数',
        number: 500,
      },
      {
        stage: '客户数',
        number: 300,
      },
    ]
    const config = {
      data: data,
      xField: 'stage',
      yField: 'number',
      shape: '',
      style: {},
    }
    return (
      <div>
        <Funnel {...config} />
      </div>
    )
  }
}
